package top.xiangqifu.springboot2.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户附加信息表
 *
 * @author 向启福
 */
@TableName(value = "tb_user_info")
@ApiModel(value = "用户附加信息" , description = "用户附加信息应答对象")
@Data
public class TbUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键",example = "1")
    @ApiParam(hidden = false)
    private Integer uid;
    @ApiModelProperty(value = "用户昵称",example = "管理员")
    @ApiParam(hidden = false)
    private String nickname;
    @ApiModelProperty(value = "性别，m：男，f：女，n：保密",example = "m")
    @ApiParam(hidden = false)
    private String sex;
    @ApiModelProperty(value = "email",example = "3485536836@qq.com")
    @ApiParam(hidden = false)
    private String email;
    @ApiModelProperty(value = "手机号码",example = "18975626879")
    @ApiParam(hidden = false)
    private String phone;
    @ApiModelProperty(value = "qq号码",example = "3485536836")
    @ApiParam(hidden = false)
    private String qq;
    @ApiModelProperty(value = "微信号码",example = "18975626879")
    @ApiParam(hidden = false)
    private String wechat;
    @ApiModelProperty(value = "用户头像url",example = "http://127.0.0.1:12030/file/2")
    @ApiParam(hidden = false)
    private String img;
    @ApiModelProperty(value = "用户简介",example = "管理网站")
    @ApiParam(hidden = false)
    private String info;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @ApiModelProperty(value = "加密密钥",example = "1")
    @ApiParam(hidden = false)
    private String cipher;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    @ApiModelProperty(value = "信息最后修改时间",example = "2023-12-08 11:06:34")
    @ApiParam(hidden = false)
    private java.util.Date lastupdate;

}